
<?=$header?>
<body>

	<?=$navigate?>
	<!-- MAIN CONTENT -->
	<div id="content">
        <?php echo form_open('main/verifyLogin', array('method'=>'POST', 'id'=>'login-form')); ?>
		<!--<form action="#" method="POST" id="login-form">-->
			<fieldset>
                <?php echo validation_errors(); ?>
                <?php
                    $typeMess =  $this->session->userdata('typeMess');
                    $message = $this->session->userdata('message');
                    if(!empty($message)){
                        if($typeMess == 'success'){
                            echo "<div class='information-box round'>$message </div>";
                        }else{
                            echo "<div class='error-box round'>$message </div>";
                        }
                    }
                        $this->session->unset_userdata('message');
                        $this->session->unset_userdata('typeMess');  
                ?>
                <?php if($this->session->userdata('logged_in') == null):?>
    				<p>
    					<label for="login-username">username</label>
    					<input name="username" type="text" id="login-username" class="round full-width-input" autofocus />
    				</p>
    
    				<p>
    					<label for="login-password">password</label>
    					<input name="password" type="password" id="login-password" class="round full-width-input" />
    				</p>
    				
    				<p>I've <a href="#">forgotten my password</a>.</p>
    				
                    <input type="submit" class="button round blue image-right ic-right-arrow" value="Login"/>
    				<!--<a href="dashboard.html" class="button round blue image-right ic-right-arrow">LOG IN</a>-->
                
			</fieldset>

			<br/><div class="information-box round">Just click on the "LOG IN" button to continue, no login information required.</div>
            <?php else: ?>
                <?php echo 'Logged in!'; ?>
            <?php endif; ?>
		</form>
		
	</div> <!-- end content -->
	
	
	
	<!-- FOOTER -->
    <?=$footer?>
	<!-- end footer -->

</body>
</html>